import 'package:json_annotation/json_annotation.dart';

import 'EcyGoodsHomeIPModel.dart';
part 'EcyGoodsHomeIPListModel.g.dart';

@JsonSerializable()
class EcyGoodsHomeIPListModel {
  int pages;
  int size;
  int total;
  int current;
  bool? myIp;
  List<EcyGoodsHomeIPModel> records;
  EcyGoodsHomeIPListModel(
      this.pages, this.size, this.total, this.records, this.myIp, this.current);

  // 从JSON创建User实例的工厂方法
  factory EcyGoodsHomeIPListModel.fromJson(Map<String, dynamic> json) =>
      _$EcyGoodsHomeIPListModelFromJson(json);

  // 将User实例转换为JSON的方法
  Map<String, dynamic> toJson() => _$EcyGoodsHomeIPListModelToJson(this);
}
